package com.dayouzi.crawler_monitor.service;

import com.dayouzi.crawler_monitor.pojo.query.AddDataPolicyQuery;
import com.dayouzi.crawler_monitor.pojo.query.AddDataQuery;
import com.dayouzi.crawler_monitor.pojo.query.CrawlerDataQuery;
import com.dayouzi.crawler_monitor.pojo.query.CrawlerDataUpdateVO;
import com.dayouzi.crawler_monitor.pojo.vo.CrawlerPolicyVO;

/**
 * 政策新闻爬虫用
 */
public interface CrawlerPolicyService {

    /**
     * 根据id查询政策新闻数据
     * @param crawlerDataQuery
     * @return
     */
    CrawlerPolicyVO getCrawlerDataById(CrawlerDataQuery crawlerDataQuery);


    /**
     * 更新数据
     * @param crawlerDataUpdateVO
     * @return
     */
    int updateCommit(CrawlerDataUpdateVO crawlerDataUpdateVO);

    /**
     * 新增数据
     * @param addDataQuery
     * @return
     */
    int addPolicyData(AddDataPolicyQuery addDataQuery);

    int updateInfoCommit(CrawlerDataUpdateVO crawlerDataUpdateVO);
}
